package com.juqimiao.outposts.resource.api.controller;

import org.springframework.security.core.Authentication;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * Demo Controller
 */
@RestController
public class EmployeeController {

    @RequestMapping(value="/employee/msg", method = RequestMethod.GET)
    public String getMessage(@RequestParam String message, Authentication authentication) {

        return message + "， " + authentication.getName();
    }
}
